//
//  MBProgressHUD+Ex.h
//  QianLongZan
//
//  Created by 陈家将 on 16/9/28.
//  Copyright © 2016年 szteyou. All rights reserved.
//

#import "MBProgressHUD.h"

@interface MBProgressHUD (Ex)

// 菊花模式
+ (void)show;
+ (void)hide;
+ (void)showInView:(UIView *)view;
+ (void)hideFromView:(UIView *)view;

// 纯文本模式
+ (void)showMsg:(NSString *)msg;
+ (void)showMsg:(NSString *)msg detail:(NSString *)detail;
+ (void)showMsg:(NSString *)msg detail:(NSString *)detail after:(CGFloat)times;
+ (void)showMsg:(NSString *)msg inView:(UIView *)view;

// 菊花文本模式
+ (void)showLoadingWithMsg:(NSString *)msg;
+ (void)showLoadingWithMsg:(NSString *)msg detail:(NSString *)detail;
+ (void)showLoadingWithMsg:(NSString *)msg inView:(UIView *)view;
+ (void)showMsg:(NSString *)msg detail:(NSString *)detail inView:(UIView *)view;
+ (void)showLoadingWithMsg:(NSString *)msg detail:(NSString *)detail inView:(UIView *)view;

// 带图片的模式
+ (void)show:(NSString *)text icon:(NSString *)icon view:(UIView *)view;
+ (void)show:(NSString *)text icon:(NSString *)icon toYOffset:(float)yOffset view:(UIView *)view;

+ (void)showSuccessInView:(UIView *)view;
+ (void)showErrorInView:(UIView *)view;
+ (void)showError:(NSString *)error toView:(UIView *)view;
+ (void)showSuccess:(NSString *)success toView:(UIView *)view;

+ (void)showError:(NSString *)error toYOffset:(float)yOffset toView:(UIView *)view;
+ (void)showSuccess:(NSString *)success toYOffset:(float)yOffset toView:(UIView *)view;

@end
